package com.maybach.core.dal.mapper;

import com.maybach.common.model.ShippingOrderDO;
import com.maybach.common.query.ShippingOrderQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for ShippingOrder.
 */
public interface ShippingOrderMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(ShippingOrderQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(ShippingOrderQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(ShippingOrderDO record);

    /**
     * insert selective.
     */
    int insertSelective(ShippingOrderDO record);

    /**
     * select by query condition.
     */
    List<ShippingOrderDO> selectByQuery(ShippingOrderQuery query);

    /**
     * select by primary key.
     */
    ShippingOrderDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") ShippingOrderDO record, @Param("query") ShippingOrderQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") ShippingOrderDO record, @Param("query") ShippingOrderQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(ShippingOrderDO record);
}